package com.pptree.dao;

import java.util.List;
import com.pptree.vo.News;
import com.pptree.vo.NewsDomain;
import com.pptree.vo.PageVo;

public interface NewsDAO {

	public List<News> findNewsTopNum(int tid,int num);
	
	public List<News> findNewsTopN(int top);
	
	
	public int addNews(News news);
	
	public int delNews(int nid);
	
	public int updateNews(News news);
	
	public List<NewsDomain> findAllNews();
	
	public News findById(int nid);
	
	
	//分页
	public PageVo<NewsDomain> findByPaging(int curPageNo,int pageSize);
	
	//获得总记录数
	public int getTotalCount();
}
